package com.offcn.user.feign;
import com.offcn.entity.Result;
import com.offcn.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/****
 * @Author:ujiuye
 * @Description:
 * @Date 2021/2/1 14:19
 *****/
@FeignClient(value="dym-user-oauth")
@RequestMapping("/user")
public interface UserFeign {
    @GetMapping("/load/{username}")
    Result<User> findByUsername(@PathVariable String username);
}